import  Router  from 'koa-router'
import category from './category'
import login from './login'

const router = new Router()
router.use('/login', login.routes(), login.allowedMethods())
router.use('/category', category.routes(), category.allowedMethods())


router.all('/',async (ctx)=> {
  ctx.body = {
    code: 0,
    msg: '信息收到(/测试)'
  }
})


export default  router